﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VM.Entity.EntityMap.Token
{
   /// <summary>
   /// 刷新鉴权
   /// </summary>
    public class Sys_RefreshToken
    {
        #region Model
        private int _id;
        private string _guid;
        private int? _userid;
        private string _publickey;
        private string _refreshkey;
        private decimal? _longtimes;
        private DateTime? _startdatetimes;
        private DateTime? _refreshdatetimes;
        private DateTime? _enddatetimes;
        private int? _clientid;
        private string _clientinfo;
        private string _description;
        /// <summary>
        /// 内码
        /// </summary>
        [SugarColumn(IsPrimaryKey = true,IsIdentity =true)]
        public int Id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// GUID
        /// </summary>
        public string GUID
        {
            set { _guid = value; }
            get { return _guid; }
        }
        /// <summary>
        /// 用户内码
        /// </summary>
        public int? UserId
        {
            set { _userid = value; }
            get { return _userid; }
        }
        /// <summary>
        /// 公钥
        /// </summary>
        public string PublicKey
        {
            set { _publickey = value; }
            get { return _publickey; }
        }
        /// <summary>
        /// 刷新秘钥
        /// </summary>
        public string RefreshKey
        {
            set { _refreshkey = value; }
            get { return _refreshkey; }
        }
        /// <summary>
        /// 时长
        /// </summary>
        public decimal? LongTimes
        {
            set { _longtimes = value; }
            get { return _longtimes; }
        }
        /// <summary>
        /// 起始时间
        /// </summary>
        public DateTime? StartDateTimes
        {
            set { _startdatetimes = value; }
            get { return _startdatetimes; }
        }
        /// <summary>
        /// 最后更新时间时间
        /// </summary>
        public DateTime? RefreshDateTimes
        {
            set { _refreshdatetimes = value; }
            get { return _refreshdatetimes; }
        }
        /// <summary>
        /// 过期时间
        /// </summary>
        public DateTime? EndDateTimes
        {
            set { _enddatetimes = value; }
            get { return _enddatetimes; }
        }
        /// <summary>
        /// 客户端内码
        /// </summary>
        public int? ClientId
        {
            set { _clientid = value; }
            get { return _clientid; }
        }
        /// <summary>
        /// 客户端详情
        /// </summary>
        public string ClientInfo
        {
            set { _clientinfo = value; }
            get { return _clientinfo; }
        }
        /// <summary>
        /// 备注
        /// </summary>
        public string Description
        {
            set { _description = value; }
            get { return _description; }
        }
        #endregion Model

    }
}
